package com.pattern.adapter.classadapter;

/**
 * @author 冯志立
 * @create 2019-10-25 11:46
 */
public class Phone {
    //充电
    public void charging(Voltage5V voltage5V){
        if (voltage5V.output5V() == 5){
            System.out.println("电压等于5v");
        } else if (voltage5V.output5V() > 5){
            System.out.println("电压大于5v");

        }
    }
}
